package com.atguigu.gmall.user.client;

import com.atguigu.gmall.model.user.UserAddress;
import com.atguigu.gmall.model.user.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("service-user")
public interface UserFeignClient {

    @PostMapping("/api/user/passport/login.html")
    UserInfo userLogin(@RequestBody UserInfo userInfo);

    @GetMapping("/api/user/passport/getUserAddress")
    List<UserAddress> getUserAddressList();
}
